/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2021-10-30 10:40:38
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2021-10-31 13:44:26
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/user/userinfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/site/logout',
    method: 'post'
  })
}


export function getAddons(data) {
  return request({
    url: '/user/addons',
    method: 'post',
    params:data
  })
}


export function getUserList(data) {
  return request({
    url: '/auth/admin-user/index',
    method: 'get',
    params:data
  })
}
